package Calculator.Exceptions;

import Calculator.Parser.Elements.Token;

public class WrongExpressionException extends Exception {

	private Token current;
	private Token next;
	
	public WrongExpressionException(Token current, Token next) {
		this.current = current;
		this.next = next;
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Override
	public String getMessage() {
		return "El elemento " + current.getId() + " no puede ir seguido de " + next.getId();
	}

}
